---
layout: "default"
title: "_Comparable"
description: "Swift documentation for '_Comparable': This protocol is an implementation detail of Comparable; do."
keywords: "_Comparable,protocol,swift,documentation,<"
root: "/v1.2"
---

<div class="intro-declaration"><code class="language-swift">protocol _Comparable</code></div>

<div class="discussion comment">
    <p>This protocol is an implementation detail of <code>Comparable</code>; do
not use it directly.</p>

<p>Its requirements are inherited by <code>Comparable</code> and thus must
be satisfied by types conforming to that protocol.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>







<h3>Instance Methods</h3>
<div class="declaration" id="func-lt_rhs_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-lt_rhs_">func &lt;(<wbr>_:<wbr>rhs:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-lt_rhs_"><div class="p">
    <p>A <a href="http://en.wikipedia.org/wiki/Total_order#Strict_total_order">strict total order</a>
over instances of <code>Self</code></p>

    <h4>Declaration</h4>    
    <code class="language-swift">func &lt;(lhs: Self, rhs: Self) -&gt; Bool</code>
    
    
</div></div>
</div>


